package com.meida.module.bus.provider.controller;

import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.springmvc.base.BaseController;
import com.meida.module.bus.client.entity.BusVipUser;
import com.meida.module.bus.provider.service.BusVipUserService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


/**
 * @author lidd
 * @description: vip业务
 * @date: 2022年-06月-25日  12:06:53
 */
@RestController
@RequestMapping("/bus/vipUser/")
public class BusVipUserController extends BaseController<BusVipUserService, BusVipUser> {


    @ApiOperation(value = "查询会员", notes = "查询会员")
    @GetMapping(value = "page")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "vipTypeId", required = true, value = "会员类型ID")
    })
    public ResultBody page(@RequestParam(required = false) Map params) {
        return ResultBody.ok(bizService.pageList(params));
    }


}
